package com.lcc.lynx.base.system.service;

import com.lcc.lynx.jdbc.IByIdService;
import com.lcc.lynx.base.system.mapper.SysMenuMapper;
import com.lcc.lynx.base.system.pojo.dv.SysMenuDV;

import java.util.List;

/** 
 * 系统菜单服务
 * @auth lcc
 * @date 2025-01-01
 */
public interface SysMenuService extends IByIdService<SysMenuDV>{

	SysMenuMapper getMapper();


    void sort(List<SysMenuDV> list);

    /**
     * 插入菜单并插入基本权限
     * @param dto
     */
    void insertAndPermission(SysMenuDV dto);

    /**
     * 删除菜单并删除基本权限
     * @param idList
     * @author lcc
     * @date 2025/1/21 10:48
     */
    void deleteAndChildren(List<Long> idList);
}